<?php
/**
 * Created by PhpStorm.
 * User: kang
 * Date: 2019-09-07
 * Time: 12:16
 */

namespace app\Validate;
use think\Validate;

class Module extends Validate
{
    protected $rule =   [
        'project_id'    => 'require',
        'title'    => 'require|length:2,20'
    ];

    protected $message  =   [
        'project_id.require' => '项目ID异常',
        'title.require' => '请填写模块名称',
        'title.length'     => '模块名称必须在2~20位之间'
    ];
}